package com.example.enterprise.api

import com.example.common.view.api.BaseApiService
import com.example.enterprise.entity.EnterpriseEntityItem
import com.example.enterprise.entity.HouseEntityItem
import com.example.enterprise.model.EnterpriseResultData
import retrofit2.http.Body
import retrofit2.http.GET
import retrofit2.http.POST

interface EnterpriseApiService:BaseApiService {
    @GET("/api/enterprise-profiles")
    suspend fun getEnterprise():EnterpriseResultData<List<EnterpriseEntityItem>>
    @POST("/api/enterprise-profiles")
    suspend fun postEnterprise(@Body enterprise:EnterpriseEntityItem):EnterpriseResultData<EnterpriseEntityItem>
    @POST("/api/merchant-applications")
    suspend fun postMerchant(@Body houseEntityItem: HouseEntityItem):EnterpriseResultData<HouseEntityItem>
}